package cn.fudan.dsm.preprocess;

import com.alibaba.fastjson.JSON;

import java.util.List;
import java.util.Map;

/**
 * Created by 80494 on 2017/5/27.
 */
public class ConvertToJson {
    public static String toJsonString(List<List<Map<String,String>>> textdata) throws Exception{
        String jsonString= JSON.toJSONString(textdata);
        return jsonString;
    }
    public static Object toJsonObject(List<List<Map<String,String>>> textdata) throws Exception{
        Object jsonObject= JSON.toJSON(textdata);
        return jsonObject;
    }

}
